package com.next

class OpportunityStage
{
    String name

    Double probability = 0

    String description

    Boolean active = true

    static belongsTo = [type: OpportunityType]

    static constraints = {
        name unique: ['type'], maxSize: 32

        description maxSize: 256, nullable: true
    }

    String toString()
    {
        name
    }
}
